package org.dromara.hmily.demo.springcloud.order.configuration;

import org.dromara.hmily.demo.springcloud.order.test.T2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

import javax.annotation.Resource;

/**
 * @auther zzyy
 * @create 2021-04-11 17:43
 */
@Configuration
public class WebMvcConfig extends WebMvcConfigurationSupport
{
    @Override
    public void addInterceptors(InterceptorRegistry registry)
    {
        registry.addInterceptor(new T2()).addPathPatterns("/**");
    }
}
